package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 接受任务对象 om_duty_accept
 *
 * @author ruoyi
 * @date 2023-11-25
 */
public class OmDutyAccept extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private String id;

    /**
     * 接收人
     */
    @Excel(name = "接收人")
    private String userId;

    /**
     * 任务ID
     */
    @Excel(name = "任务ID")
    private String dutyId;

    /**
     * 接受时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "接受时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date acceptTime;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserId() {
        return userId;
    }

    public void setDutyId(String dutyId) {
        this.dutyId = dutyId;
    }

    public String getDutyId() {
        return dutyId;
    }

    public void setAcceptTime(Date acceptTime) {
        this.acceptTime = acceptTime;
    }

    public Date getAcceptTime() {
        return acceptTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId()).append("userId", getUserId()).append("dutyId", getDutyId()).append("acceptTime", getAcceptTime()).toString();
    }
}
